package com.qf.service.impl;

import com.qf.mapper.MenusMapper;
import com.qf.pojo.Menus;
import com.qf.service.MenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class MenusServiceImpl  implements MenusService {
    @Autowired
    private MenusMapper menusMapper;

    @Override
    public List<Menus> findAllMenus() {
        return menusMapper.findAllMenus();
    }
}
